using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using SqlSugar;

namespace Blog.Model
{
    public class BlogNews:Base
    {
        /// <summary>
        /// 标题
        /// </summary>
        /// <value></value>
        [SugarColumn(ColumnDataType = "nvarchar(64)")]
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        /// <value></value>
        [SugarColumn(ColumnDataType = "text")]
        public string Content { get; set; }

        /// <summary>
        /// 时间
        /// </summary>
        /// <value></value>
        public DateTime Time { get; set; }

        /// <summary>
        /// 浏览量
        /// </summary>
        /// <value></value>
        public int BrovseCount { get; set; }

        /// <summary>
        /// 点赞数
        /// </summary>
        /// <value></value>
        public int LikeCount { get; set; }

        /// <summary>
        /// 类型Id
        /// </summary>
        /// <value></value>
        public int TypeId { get; set; }

        /// <summary>
        /// 作者Id
        /// </summary>
        /// <value></value>
        public int WriterId { get; set; }

        #region  类型、不映射到数据库
        [SugarColumn(IsIgnore = true)]
        public TypeInfo TypeInfos { get; set; }

        [SugarColumn(IsIgnore = true)]
        public WriterInfo WriterInfos { get; set; }
        #endregion
    }
}